﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Frogism.Core"
                   namespace="Frogism.Core">

  <class name="Transaction" table="`Transaction`">
    <id name="Id">
      <generator class="identity" />
    </id>
    <property name="Amount" />
    <property name="IsConfirmed" />
    <property name="Note" />
    <property name="TransactionDate" column="Date" />
    <property name="AccountId" />
    <many-to-one  name ="Category" class="Category" column="CategoryId" lazy="false" />
    <many-to-one  name ="TransactionType" class="TransactionType" column="TransactionTypeId" lazy="false" />

  </class>
</hibernate-mapping>